@extends('layouts.app')

@section('content')
    <h1>添加任务</h1>
    <form action="{{ route('tasks.store') }}" method="POST">
        @csrf
        <div>
            <label>标题：</label>
            <input type="text" name="title" required>
        </div>
        <div>
            <label>描述：</label>
            <textarea name="description"></textarea>
        </div>
        <button type="submit">保存</button>
    </form>
    <a href="{{ route('tasks.index') }}">返回</a>
@endsection